<div class="comments-list">
    <div><h5>Comentarios:</h5></div>
    <?php foreach ($pager->getResults() as $key => $comment): ?>
        <div class="comment <?php echo $key%2 ? 'even':'odd'?>">
            <p>
                <strong><?php echo ($key+1).'#'?></strong> |
                <em><?php echo $comment->getDateTimeObject('created_at')->format('d/m/Y - g:i a') ?></em>
            </p>
            <?php echo $comment->getComment() ?>
        </div>
    <?php endforeach; ?>
</div>
<div class="pagination-desc">
    <strong><?php echo count($pager) ?></strong> comentarios
    <?php if ($pager->haveToPaginate()): ?>
        - pagina <strong><?php echo $pager->getPage() ?>/<?php echo $pager->getLastPage() ?></strong>
    <?php endif; ?>
</div>
<?php if ($pager->haveToPaginate()): ?>
    <div class="pagination">
        <a href="<?php echo url_for('render_content',$content) ?>?page=1">
            <img src="/uploads/default/first.png" alt="1ra página" title="1ra página" />
        </a>
        <a href="<?php echo url_for('render_content', $content) ?>?page=<?php echo $pager->getPreviousPage() ?>">
            <img src="/uploads/default/previous.png" alt="Página anterior" title="Página anterior" />
        </a>
        <?php foreach ($pager->getLinks() as $page): ?>
            <?php if ($page == $pager->getPage()): ?>
                <strong><?php echo $page ?></strong>
            <?php else: ?>
                <a href="<?php echo url_for('render_content', $content) ?>?page=<?php echo $page ?>"><?php echo $page ?></a>
            <?php endif; ?>
        <?php endforeach; ?>
        <a href="<?php echo url_for('render_content', $content) ?>?page=<?php echo $pager->getNextPage() ?>">
            <img src="/uploads/default/next.png" alt="Página siguiente" title="Página siguiente" />
        </a>
        <a href="<?php echo url_for('render_content', $content) ?>?page=<?php echo $pager->getLastPage() ?>">
            <img src="/uploads/default/last.png" alt="Ultima página" title="Last page" />
        </a>
    </div>
<?php endif; ?>